package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author coderFu
 * @create 2021/11/8
 */
@Data
@ApiModel("匿名用户参数类")
public class AnonyUserDTO {

    @ApiModelProperty("自增id")
    @NotNull(message = "匿名消息记录id不能为空")
    @Min(value = 1,message = "id不合法")
    private Integer id;

    @ApiModelProperty("用户匿名头像id")
    @NotNull(message = "用户匿名头像id不能为空")
    @Min(value = 1,message = "id不合法")
    private Integer anonymousAvatarUrlId;

    @ApiModelProperty("用户匿名名称id")
    @NotNull(message = "用户匿名名称id不能为空")
    @Min(value = 1,message = "id不合法")
    private Integer anonymousNameId;

}
